<script>
import dataApi from '@/view/data-api-edit'
import LabelText from '../comm/LabelText'
export default {
  render () {
    let itemData = dataApi.currActiveItem
    return (
      <div class="set-item b-top">
        <div class="tit">位置尺寸</div>
        <div class="it">
          <LabelText type="number" min="0" value={itemData.x} onInputValue={v => { itemData.x = v * 1 }} onChange={({ target }) => { itemData.x = target.value * 1 }}>x</LabelText>
          <LabelText type="number" min="0" value={itemData.y} onInputValue={v => { itemData.y = v * 1 }} onChange={({ target }) => { itemData.y = target.value * 1 }}>y</LabelText>
          <LabelText type="number" min="0" value={itemData.w} onInputValue={v => { itemData.w = v * 1 }} onChange={({ target }) => { itemData.w = target.value * 1 }}>宽</LabelText>
          <LabelText type="number" min="0" value={itemData.h} onInputValue={v => { itemData.h = v * 1 }} onChange={({ target }) => { itemData.h = target.value * 1 }}>高</LabelText>
        </div>
      </div>
    )
  }
}
</script>
